package org.example.girlfriend;

/**
 * @author: 默苍璃
 * @date: 2024-06-28 10:52
 */
public class GirlFriendBuilder {

    String sex;// 性别
    int age;// 年龄
    int stature;// 身高
    int weight;// 体重
    String type;// 类型

    public GirlFriendBuilder setSex(String sex) {
        this.sex = sex;
        return this;
    }

    public GirlFriendBuilder setAge(int age) {
        this.age = age;
        return this;
    }

    public GirlFriendBuilder setStature(int stature) {
        this.stature = stature;
        return this;
    }

    public GirlFriendBuilder setWeight(int weight) {
        this.weight = weight;
        return this;
    }

    public GirlFriendBuilder setType(String type) {
        this.type = type;
        return this;
    }

    /**
     * 返回一个GirlFriend对象
     */
    public GirlFriend build() {
        return new GirlFriend(this);
    }

}
